package com.pateo.springcloudorder.web.response;

import lombok.Data;

@Data
public class Response {
    private boolean success;
    private String errorCode;
    private String errorMsg;
    private Object data;

    public Response(){
        this.success = true;
    }

    public Response(Object data){
        this.success = true;
        this.data = data;
    }

    public Response(String errorCode,String errorMsg){
        this.success = false;
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

}
